/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.ban.data.exchange.runner.master;

/**
 *
 * @author Administrator
 */
public class RequestCount {

    public static long initTime = System.currentTimeMillis();
    public static int count = 0;

    public synchronized static int addUp() {
        if ((System.currentTimeMillis() - initTime) > 1000) {
            initTime = System.currentTimeMillis();
            count = 0;
        }
        count++;
        return count;
    }
}
